package com.pig4cloud.feign;

import com.pig4cloud.entity.UserEntity;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pig.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.MINIPROGRAM_SERVICE)
public interface RemoteUserService {
	@GetMapping("/tbUser/{username}")
	R<UserEntity> tbUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM) String from);
}
